export function get7Day(){
	const forSevenDay = []
	for(let i = 0;i<7;i++){
		const now =  new Date()
		now.setDate(now.getDate()+i)
		const month =  now.getMonth()+1
		const d = now.getDate()
		const day =  now.getDay()
		const o = {
			label:month + '/' + d,
			value : now,
			day:getDay(day)
		}
		forSevenDay.push(o)
	}
	return forSevenDay

}

function getDay(day:number){
	let d =''
	switch(day){
		case 0: // 这里是全等判断
		     d = '星期天';
		      break; // 每个 case 必须加 break;代表当前匹配后就退出，否则之后每一项都会匹配
		
		      case 1:
		     d='星期一';
		      break;
		
		      case 2: 
		      d='星期二';
		      break;
		
		      case 3: 
		      d='星期三';
		      break;
		
		      case 4: 
		      d='星期四';
		      break;
		
		      case 5: 
		      d='星期五';
		      break;
		
		      case 6:
		      d='星期六';
		      break;
	}
	return d
	
}